<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Cat(){};
        var obj1={a:1};
        Cat.prototype=obj1;  //指定构造器Cat的原型
        var cat=new Cat();

        console.log(obj1.isPrototypeOf(cat));  //true
        console.log(obj1.isPrototypeOf({}));  //false
        console.log(Array.prototype.isPrototypeOf([]));  //true
    </script>
</body>
</html>